#!/bin/sh
APP_LIB=/Users/ming/IdeaProjects/spring-cloud-openshift-git/non-springboot-sample/target/lib/
export APP_LIB

APP_JAR=/Users/ming/IdeaProjects/spring-cloud-openshift-git/non-springboot-sample/target/non-springboot-sample-1.0-SNAPSHOT.jar

MAIN_CLASS=com.xwolf.test.MyApplication
export MAIN_CLASS

CLASSPATH=$APP_JAR:`find $APP_LIB -name \*.jar | sort | paste -s -d ":" -`:${CLASSPATH}
export CLASSPATH

JAVA_VM_OPTS=-Dspring.profiles.active=MY
export JAVA_VM_OPTS

exec java "-Djava.security.egd=file:/dev/./urandom" $JAVA_VM_OPTS $MAIN_CLASS